package cn.edu.zafu.bigdata.x.cccnnn;

public class course {
    String Cname;
    String Cnum;
    int Credit;
    public course(String Cname,String Cnum,int Credit){
        this.Cname=Cname;
        this.Cnum=Cnum;
        this.Credit=Credit;
    }
    public void print() {
        System.out.println("课程名称: " + Cname);
        System.out.println("课程编号: " + Cnum);
        System.out.println("学分: " + Credit);
    }
    public static void main(String[] args) {
        course course = new course("Java编程", "112233", 4);
        course.print();
    }
}